package chapter02;

public class Example19 {
    public  static void main(String[] args) {
        printRectangle( 3,5);
        printRectangle( 2,4);
        printRectangle( 6,10);

    }
    public static void printRectangle(int height,int width){
        for (int i = 0; i<height ; i++) {
            for ( int j = 0; j < width; j++) {
                System.out.println("*");
            }
            System.out.println("\n"); //打印完一行星换行
        }
        System.out.println("\n");
    }
}
